package edu.gatech.cs2340.teamrocket.model.map;

import edu.gatech.cs2340.teamrocket.model.storage.ShopInventoryFactory;

/**
 * Starting Location. Has a ShopInventory. Always named "Pallet Town."
 *
 * @author Joe Tacheron
 */
public class StartingLocation extends Town {

    private static final String NAME = "Pallet Town";

    public StartingLocation(){
        super(NAME, ShopInventoryFactory.getStartingShopInventory(), 0);
    }

    /**
     * @return the type of the location (plains, town, etc.) as a String
     */
    @Override
    public String getType() {
        String classname = Town.class.getName();
        int startingIndex = classname.lastIndexOf ('.') + 1;
        String typename = classname.substring(startingIndex);
        return typename;
    }
}
